/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-10-09  09:51
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList(10);
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();
        myArrayList.add(1,88);
        myArrayList.display();
        System.out.println(myArrayList.contains(2));
        System.out.println("======================");
        System.out.println(myArrayList.indexOf(3));
        myArrayList.set(4,99);
        myArrayList.display();
        System.out.println("=======================");
        System.out.println(myArrayList.size());
        System.out.println("=====================");
        myArrayList.clear();
        myArrayList.display();

    }
}
